" 定义函数 InsertHTMLHeader，用于插入 HTML 文件头
function! InsertHTMLHeader()
    call setline(1, "<!DOCTYPE html>")
    call append(line("."), "<html lang=\"en\">")
    call append(line(".")+1, "<head>")
    call append(line(".")+2, "    <meta charset=\"UTF-8\">")
    call append(line(".")+3, "    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">")
    call append(line(".")+4, "    <title>New HTML File</title>")
    call append(line(".")+5, "</head>")
    call append(line(".")+6, "<body>")
    call append(line(".")+7, "")
    call append(line(".")+8, "</body>")
    call append(line(".")+9, "</html>")
    call cursor(7, 1)  " 将光标定位到 <body> 内容的位置
endfunction

